#ifndef __BSP_YX_H__
#define __BSP_YX_H__


#include "config.h"
//#include <stdint.h>
#include "hc32_ddl.h"





/* C binding of definitions if building with C++ compiler */
#ifdef __cplusplus
extern "C"
{
#endif

/** 
 * @defgroup YX definition
 * @{
 */
#define BSP_YX_1_PORT           (PortB)
#define BSP_YX_1_PIN            (Pin10)


#define Yx1InClose()            (PORT_GetBit(BSP_YX_1_PORT, BSP_YX_1_PIN) == Reset)
//#define Yx2InClose()            PORT_GetBit(BSP_YX_2_PORT, BSP_YX_2_PIN) == Reset
//#define Yx3InClose()            PORT_GetBit(BSP_YX_3_PORT, BSP_YX_3_PIN) == Reset
//#define Yx4InClose()            PORT_GetBit(BSP_YX_4_PORT, BSP_YX_4_PIN) == Reset
/**
 * @}
 */

/*******************************************************************************
  Global function prototypes (definition in C source)
 ******************************************************************************/
/**
 * @addtogroup Global_Functions
 * @{
 */
void BspYxInit(void);
/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif /* __BSP_YX_H__ */

/*******************************************************************************
 * EOF (not truncated)
 ******************************************************************************/
